package com.ruoyi.web.personequi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人员设备关联对象 personequi
 * 
 * @author bxm
 * @date 2025-07-30
 */
public class PersonEqui extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 人员id */
    @Excel(name = "人员id")
    private Long personalId;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;

    /** 分配时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分配时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date assignedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPersonalId(Long personalId) 
    {
        this.personalId = personalId;
    }

    public Long getPersonalId() 
    {
        return personalId;
    }

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setAssignedTime(Date assignedTime) 
    {
        this.assignedTime = assignedTime;
    }

    public Date getAssignedTime() 
    {
        return assignedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("personalId", getPersonalId())
            .append("equipmentId", getEquipmentId())
            .append("assignedTime", getAssignedTime())
            .toString();
    }
}
